package org.fanximall.erp.system.application.service.impl;

import org.fanximall.erp.system.application.req.DeptQuery;
import org.fanximall.erp.system.application.service.DeptService;
import org.fanximall.erp.system.domain.model.SysDeptModel;
import org.fanximall.erp.system.domain.repository.SysDeptRepository;
import org.springframework.stereotype.Service;
import javax.annotation.Resource;
import java.util.List;


/**
 * @author :  william
 * @version :  V1.0  created in 2024/4/19
 */
@Service
public class DeptServiceImpl implements DeptService {

    @Resource
    private SysDeptRepository deptRepository;


    public List<SysDeptModel> listAllDept(DeptQuery deptQuery){
        return deptRepository.listAllDept(deptQuery.getName(),deptQuery.getStatus());
    }

}
